package com.springboot.blog.beans;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BlogClassify implements Serializable {

    private static final long serialVersionUID = 2L;
    @TableId(type = IdType.AUTO)
    @TableField(value = "classify_id")
    private Integer classifyId;

    @TableField(value = "classify_name")
    private String classifyName;

    @TableLogic
    @TableField(fill = FieldFill.INSERT,value = "classify_deleted")
    private Integer classifyDeleted;

    @TableField(fill= FieldFill.INSERT,value = "classify_create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    private Date classifyCreateTime;

    @Version
    @TableField(fill = FieldFill.INSERT,value = "classify_version")
    private Integer classifyVersion;
}
